﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Db.DeviceDb
{
    [SugarTable("UseDevice")]
    public class UseDevice
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }
        /// <summary>
        /// 仪器标识
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 仪器编号
        /// </summary>
        public string num { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }
        /// <summary>
        /// 仪器
        /// </summary>
        public string temp { get; set; }
        /// <summary>
        /// 仪器型号
        /// </summary>
        public string model { get; set; }
        /// <summary>
        /// 仪器类型
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 通信方式 RS232/RS485/TCP_Client/TCP_Server/USB_VISA/USB_DLL/HTTP
        /// </summary>
        public string mode { get; set; }
        /// <summary>
        /// 通信端口 COM1/127.0.0.1:9999/USB_VISA/USB_DLL
        /// </summary>
        public string commPort { get; set; }
        /// <summary>
        /// 通信地址
        /// </summary>
        public string commAddr { get; set; }
        /// <summary>
        /// 通信参数
        /// </summary>
        public string parameter1 { get; set; }
        /// <summary>
        /// 通信参数
        /// </summary>
        public string parameter2 { get; set; }
        /// <summary>
        /// 仪器描述
        /// </summary>
        public string descripe { get; set; }
    }
}
